//
//  HOJPushHandler.h
//  WeiDu
//
//  Created by foguo-mac-1 on 23/11/2017.
//  Copyright © 2017 WeiDu. All rights reserved.
//

#import <Foundation/Foundation.h>

// 引入JPush功能所需头文件
#import "JPUSHService.h"
// iOS10注册APNs所需头文件
@interface HOJPushHandler : NSObject<JPUSHRegisterDelegate>
@property(nonatomic, retain)NSString *jPushRegistrationID;

@property(nonatomic, assign)BOOL    isNotificationOpened;
+ (HOJPushHandler *)sharedInstance;
- (void)initJPushServiceWithOptions:(NSDictionary *)launchOptions;
- (void)registerJPushServiceWithOptions:(NSDictionary *)launchOptions;
- (NSString *)getRegistertationID;
- (void)togglePushNotification;
- (void)addObserveJPushNotifications;
- (void)openPushNotification:(BOOL)open;
- (void)setBadge:(NSInteger)number;
- (void)cleanup;
@end
